package com.faithbj.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.faithbj.common.dao.impl.BaseDaoImpl;
import com.faithbj.common.model.fm.Employment;
import com.faithbj.dao.EmploymentDao;
@Repository("employmentDao")
public class EmploymentDaoImpl extends BaseDaoImpl<Employment, String> implements EmploymentDao {
    @Override
    public List<Employment> queryByFmIds(List<String> fmIds) {
        String hql = "select e from Employment as e " + "where e.fmId in(:fmIds)";
        return getSession().createQuery(hql).setParameterList("fmIds", fmIds).list();
    }

}
